package com.smxy.hunzi.user.service.impl;

import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.smxy.hunzi.common.utils.PageUtils;
import com.smxy.hunzi.common.utils.Query;

import com.smxy.hunzi.user.dao.PersonalArticleDao;
import com.smxy.hunzi.user.entity.PersonalArticleEntity;
import com.smxy.hunzi.user.service.PersonalArticleService;


@Service("personalArticleService")
public class PersonalArticleServiceImpl extends ServiceImpl<PersonalArticleDao, PersonalArticleEntity> implements PersonalArticleService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<PersonalArticleEntity> page = this.page(
                new Query<PersonalArticleEntity>().getPage(params),
                new QueryWrapper<PersonalArticleEntity>()
        );

        return new PageUtils(page);
    }

}